package com.springweb.unit3.autowiredAmbiguity;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.springweb.unit3.autowiredAmbiguity.impl.Popsicle;
import com.springweb.unit3.autowiredAmbiguity.impl.Sachima;

@Configuration
@ComponentScan(basePackages={"com.springweb.unit3"})
public class DessertConfig {
	@Bean
	@Cold
	@Qualifier("fruity")
	public Dessert Popsicle() {
		return new Popsicle();
	}
	
	@Bean
	public Dessert sachima() {
		return new Sachima();
	}
}
